package com.atguigu.spzx.cart.client.fallback;

import com.atguigu.spzx.cart.client.ServiceCartClient;
import com.atguigu.spzx.model.entity.cart.CartItem;
import com.atguigu.spzx.model.vo.common.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
@Slf4j
public class ServiceCartClientFallback implements ServiceCartClient {
    @Override
    public Result<List<CartItem>> allCheckedCart() {
        log.error("远程访问购物车服务查询选中购物项列表失败");
        return Result.error();
    }
}
